package com.yugao.fintech.draper.security.exception;

import org.springframework.security.oauth2.core.OAuth2AuthenticationException;
import org.springframework.security.oauth2.core.OAuth2Error;

public class AppidGiteeException extends OAuth2AuthenticationException {

    public AppidGiteeException(String errorCode) {
        super(errorCode);
    }

    public AppidGiteeException(OAuth2Error error) {
        super(error);
    }

    public AppidGiteeException(OAuth2Error error, Throwable cause) {
        super(error, cause);
    }

    public AppidGiteeException(OAuth2Error error, String message) {
        super(error, message);
    }

    public AppidGiteeException(OAuth2Error error, String message, Throwable cause) {
        super(error, message, cause);
    }

    @Override
    public OAuth2Error getError() {
        return super.getError();
    }

}
